package com.graduate.twentyone.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class Valumes {

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date daytime;
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date monthtime;
    @JsonFormat(pattern = "yyyy", timezone = "GMT+8")
    private Date yeartime;
    private List<ValumeFood> foodmess;
    private List<ValumeMold> moldmess;

    public Valumes() {
    }

    public Valumes(Date daytime, Date monthtime, Date yeartime, List<ValumeFood> foodmess, List<ValumeMold> moldmess) {
        this.daytime = daytime;
        this.monthtime = monthtime;
        this.yeartime = yeartime;
        this.foodmess = foodmess;
        this.moldmess = moldmess;
    }

    public Date getDaytime() {
        return daytime;
    }

    public void setDaytime(Date daytime) {
        this.daytime = daytime;
    }

    public Date getMonthtime() {
        return monthtime;
    }

    public void setMonthtime(Date monthtime) {
        this.monthtime = monthtime;
    }

    public Date getYeartime() {
        return yeartime;
    }

    public void setYeartime(Date yeartime) {
        this.yeartime = yeartime;
    }

    public List<ValumeFood> getFoodmess() {
        return foodmess;
    }

    public void setFoodmess(List<ValumeFood> foodmess) {
        this.foodmess = foodmess;
    }

    public List<ValumeMold> getMoldmess() {
        return moldmess;
    }

    public void setMoldmess(List<ValumeMold> moldmess) {
        this.moldmess = moldmess;
    }

    @Override
    public String toString() {
        return "Valumes{" +
                "daytime=" + daytime +
                ", monthtime=" + monthtime +
                ", yeartime=" + yeartime +
                ", foodmess=" + foodmess +
                ", moldmess=" + moldmess +
                '}';
    }
}
